package second.demo;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月27日12:12
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class studentClass= Student.class;

        Student student = new Student();
        Class aClass= student.getClass();

        Class aClass1=Class.forName("second.demo.Student");

        System.out.println(studentClass==aClass);
        System.out.println(studentClass==aClass1);
        System.out.println(aClass==aClass1);

    }
}

class Student{
    private String name;
    private int age;

    public void show(){
        System.out.println("show方法");
    }
}